from sqlalchemy import Column, Integer, String, DateTime
from sqlalchemy.orm import declarative_base

# 创建 declarative_base 实例，之后创建的每个模型都继承自它
Base = declarative_base()


class Admin(Base):
    __tablename__ = "admin"
    id = Column("admin_id", Integer, primary_key=True, index=True)
    admin_name = Column("admin_name", String(100))
    password = Column("admin_password", String(200))
    time = Column("regist_date", DateTime)
